package com.xjtu.se.homework.client.login.dao;

import com.xjtu.se.homework.client.login.dto.ClientSearchDto;
import com.xjtu.se.homework.client.login.dto.ClientUserDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClientLoginDao {
    @Select("select * from sys_user where phone =#{phone}")
    List<ClientUserDto> search(ClientSearchDto clientSearchDto);

    @Insert("insert into sys_user(u_name,phone,email,u_id)values(#{u_name},#{phone},#{email},#{u_id})")
    void insertUserInfor(ClientUserDto tempUser);

//    boolean insert(UserDto user);
}
